<template>
  <div class="h-full flex justify-center items-center border-20 border-gray-100">
    <n-result
      m-auto
      status="404"
      title="404 您访问的页面不存在"
      description="请回到首页继续操作"
      size="large"
    >
      <template #footer>
        <n-button type="primary" ghost @click="replace('/')"> 返回首页 </n-button>
      </template>
    </n-result>
  </div>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router';

const { replace } = useRouter();
</script>

<style lang="less" scoped></style>
